<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <!-- 搜索筛选面板 -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">搜索筛选</h3>
                        </div>
                        <div class="panel-body">
                            <form class="form-horizontal" id="search-form">
                                <div class="row">
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-xs-4">开始日期</label>
                                            <div class="col-xs-8">
                                                <input type="date" class="form-control" id="start_date" name="start_date" value="">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-xs-4">结束日期</label>
                                            <div class="col-xs-8">
                                                <input type="date" class="form-control" id="end_date" name="end_date" value="">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-xs-4">员工</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" id="user_id" name="user_id">
                                                    <option value="">全部员工</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-xs-4">状态</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" id="status" name="status">
                                                    <option value="">全部状态</option>
                                                    <option value="0">待确认</option>
                                                    <option value="1">已确认</option>
                                                    <option value="2">已拒绝</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <div class="col-xs-12">
                                                <button type="button" class="btn btn-primary" id="search-btn">
                                                    <i class="fa fa-search"></i> 搜索
                                                </button>
                                                <button type="button" class="btn btn-success" id="export-detail-btn">
                                                    <i class="fa fa-download"></i> 导出明细
                                                </button>
                                                <button type="button" class="btn btn-info" id="export-summary-btn">
                                                    <i class="fa fa-download"></i> 导出汇总
                                                </button>
                                                <button type="button" class="btn btn-default" id="reset-btn">
                                                    <i class="fa fa-refresh"></i> 重置
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>

                    <!-- 数据表格 -->
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <div id="toolbar" class="toolbar">
                                {:build_toolbar('refresh,add,edit,del')}
                                <a href="{:url('scanwork/wage_export/index')}" class="btn btn-success btn-sm">
                                    <i class="fa fa-download"></i> 导出筛选
                                </a>
                            </div>
                            <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                                   data-operate-edit="{:$auth->check('scanwork/wage/edit')}" 
                                   data-operate-del="{:$auth->check('scanwork/wage/del')}" 
                                   width="100%">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>